package cn.tedu.oop;
/*本类用作面向对象编程的设计老师类*/
public class DesignTeacher {
    public static void main(String[] args) {
        CGBTeacher ct = new CGBTeacher();
        SCDTeacher st = new SCDTeacher();
        ct.ready();
        ct.teach();
        st.ready();
        st.teach();

    }
}
abstract class Teacher{
    String name;
    int id;
    public abstract void ready();
    public abstract void teach();
}
class CGBTeacher extends Teacher{
    public void ready(){
        System.out.println("备课电商项目");
    }
    public void teach(){
        System.out.println("授课电商项目");
    }
}
class SCDTeacher extends Teacher{
    public void ready(){
        System.out.println("备课hadoop spark");
    }
    public void teach(){
        System.out.println("授课hadoop spark");
    }
}
class ACTTeacher extends Teacher{

    @Override
    public void ready() {

    }

    @Override
    public void teach() {

    }
}